# books/urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from hello import views

router = DefaultRouter()
router.register('user', views.UserViewSet)
router.register('drug', views.DrugViewSet)
router.register('manufacture', views.ManufactureViewSet)
router.register('stock', views.StockViewSet)
router.register('buyer', views.BuyerViewSet)
router.register('sale', views.SalesViewSet)
router.register('supply', views.SupplyViewSet)
router.register('treat', views.DrugTreatmentViewSet)

urlpatterns = [
    path('', include(router.urls)),
]
